package com.bwie.controller;

import com.bwie.domain.Steam;
import com.bwie.service.SteamService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Li sir
 * @Date: 2024/10/30 08:26
 * @Description:
 **/
@RestController
@RequestMapping("/steam/steam")
public class SteamController {
            @Autowired
    private SteamService steamService;


       //列表
    @PostMapping("/list")
    public R list(@RequestBody  PageInfoVo pageInfoVo){
        return steamService.list(pageInfoVo);
    }

    @PostMapping("/add")
    public R add(@RequestBody Steam steam){
        return steamService.add(steam);
    }
}
